package com.jhyspringcloud.feign.client;

import com.jhyspringcloud.config.pojo.dto.UserDto;
import com.jhyspringcloud.feign.config.DefaultFeignConfiguration;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "userservice",configuration = {DefaultFeignConfiguration.class})
public interface UserClient {

    @GetMapping("/user/{id}")
    public UserDto getUserById(@PathVariable("id") Long id);

}
